object-tree: Allow inspecting inspectors
authorBenjamin Otte <otte@redhat.com>
Tue, 21 Jun 2022 00:32:33 +0000 (02:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 21 Jun 2022 00:35:02 +0000 (02:35 +0200)
We filter by display, so the inspector window should show up only when
inspecting the inspector.

gtk/inspector/object-tree.c

index 34a740668351dec59aba85c7ef65d20410be9e38..1c5f0229254add32b28c4402b6dc9a9e0d78cc30 100644 (file)
@@ -1136,9 +1136,6 @@ toplevel_filter_func (gpointer item,
   if (!GTK_IS_WINDOW (item))
     return FALSE;
 
-  if (g_str_equal (G_OBJECT_TYPE_NAME (item), "GtkInspectorWindow"))
-    return FALSE;
-
   return gtk_widget_get_display (item) == display;
 }